<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>WebCL: IWebCLContext Interface Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">WebCL
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">IWebCLContext Interface Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="IWebCLContext" -->
<p><a class="el" href="interfaceIWebCLContext.html" title="IWebCLContext interface abstracts a WebCL context.">IWebCLContext</a> interface abstracts a WebCL context.  
 <a href="interfaceIWebCLContext.html#details">More...</a></p>

<p><code>import &quot;<a class="el" href="IWebCLContext_8idl_source.html">IWebCLContext.idl</a>&quot;;</code></p>

<p><a href="interfaceIWebCLContext-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">nsIVariant&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#afba3b87c3b22d1d02b52d8bb85e38321">getContextInfo</a> (in long aName)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get context info.  <a href="#afba3b87c3b22d1d02b52d8bb85e38321"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLProgram.html">IWebCLProgram</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#af4f9064245bf433c1ef106b44ad06978">createProgramWithSource</a> (in string aSource)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a program object for a context, and loads the source code specified by the text string aSource into the program object.  <a href="#af4f9064245bf433c1ef106b44ad06978"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLCommandQueue.html">IWebCLCommandQueue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#ac062e1ef43e5dd34b0a1c2762fc04ad9">createCommandQueue</a> (in nsISupports aDevice, in <a class="el" href="WebCL__types_8idl.html#ae09faba93019c2ee357a57ddbcfdd804">T_WebCLCommandQueueProperties</a> aProperties)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a command-queue on a specific device.  <a href="#ac062e1ef43e5dd34b0a1c2762fc04ad9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLMemoryObject.html">IWebCLMemoryObject</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#a7f7593fd6179b4167b75553d6a709993">createBuffer</a> (in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aSize)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a buffer object.  <a href="#a7f7593fd6179b4167b75553d6a709993"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLMemoryObject.html">IWebCLMemoryObject</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#ac0c6b072c1dce0a5cca93af78300a780">createImage2D</a> (in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags, in nsIVariant aImageFormat, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aWidth, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aHeight, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aRowPitch)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a 2D image object.  <a href="#ac0c6b072c1dce0a5cca93af78300a780"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLMemoryObject.html">IWebCLMemoryObject</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#ab73cd608b10f0f68ba0f3b60a6cffa3e">createImage3D</a> (in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags, in nsIVariant aImageFormat, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aWidth, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aHeight, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aDepth, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aRowPitch, in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a> aSlicePitch)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a 3D image object.  <a href="#ab73cd608b10f0f68ba0f3b60a6cffa3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLSampler.html">IWebCLSampler</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#abb239eb4af61af9c2974f79bf7f848ab">createSampler</a> (in boolean aNormalizedCoords, in <a class="el" href="WebCL__types_8idl.html#aa9a1e259e5b0c134f036423fd389dc2b">T_WebCLAddressingMode</a> aAddressingMode, in <a class="el" href="WebCL__types_8idl.html#ab1cbd3d68ec437a83969b4af3f1a1f83">T_WebCLFilterMode</a> aFilterMode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a sampler object.  <a href="#abb239eb4af61af9c2974f79bf7f848ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">nsIVariant&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#a9f69f3138b8f7683c7386cde61423b94">getSupportedImageFormats</a> (in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a> aFlags, in <a class="el" href="WebCL__types_8idl.html#ad1b673722e988d883d12ad7bac854c2b">T_WebCLMemObjectType</a> aImageType)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the list of image formats supported by an OpenCL implementation.  <a href="#a9f69f3138b8f7683c7386cde61423b94"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfaceIWebCLEvent.html">IWebCLEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#a103375eaf93fee56d1fed5d913ead244">createUserEvent</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a user event object.  <a href="#a103375eaf93fee56d1fed5d913ead244"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceIWebCLContext.html#ad7fccb419d1d64e1f010ed17df6fd5da">releaseCLResources</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Immediately releases all OpenCL-related resources if any are allocated for this object.  <a href="#ad7fccb419d1d64e1f010ed17df6fd5da"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="interfaceIWebCLContext.html" title="IWebCLContext interface abstracts a WebCL context.">IWebCLContext</a> interface abstracts a WebCL context. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>cl_context </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7f7593fd6179b4167b75553d6a709993"></a><!-- doxytag: member="IWebCLContext::createBuffer" ref="a7f7593fd6179b4167b75553d6a709993" args="(in T_WebCLMemFlags aFlags, in T_WebCLSize aSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLMemoryObject.html">IWebCLMemoryObject</a> <a class="el" href="interfaceIWebCLContext.html#a7f7593fd6179b4167b75553d6a709993">IWebCLContext::createBuffer</a> </td>
          <td>(</td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a>&#160;</td>
          <td class="paramname"><em>aFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a buffer object. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aFlags</td><td>A bit-field that is used to specify allocation and usage information </td></tr>
    <tr><td class="paramname">aSize</td><td>The size in bytes of the buffer memory object to be allocated. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A WebCLMemoryObject instance representing a buffer. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateBuffer </dd></dl>

</div>
</div>
<a class="anchor" id="ac062e1ef43e5dd34b0a1c2762fc04ad9"></a><!-- doxytag: member="IWebCLContext::createCommandQueue" ref="ac062e1ef43e5dd34b0a1c2762fc04ad9" args="(in nsISupports aDevice, in T_WebCLCommandQueueProperties aProperties)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLCommandQueue.html">IWebCLCommandQueue</a> <a class="el" href="interfaceIWebCLContext.html#ac062e1ef43e5dd34b0a1c2762fc04ad9">IWebCLContext::createCommandQueue</a> </td>
          <td>(</td>
          <td class="paramtype">in nsISupports&#160;</td>
          <td class="paramname"><em>aDevice</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#ae09faba93019c2ee357a57ddbcfdd804">T_WebCLCommandQueueProperties</a>&#160;</td>
          <td class="paramname"><em>aProperties</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a command-queue on a specific device. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aDevice</td><td>A WebCLDevice instance associated with the context. </td></tr>
    <tr><td class="paramname">aProperties</td><td>Specifies a list of properties for the command queue. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A WebCLCommandQueue instance. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateCommandQueue </dd></dl>

</div>
</div>
<a class="anchor" id="ac0c6b072c1dce0a5cca93af78300a780"></a><!-- doxytag: member="IWebCLContext::createImage2D" ref="ac0c6b072c1dce0a5cca93af78300a780" args="(in T_WebCLMemFlags aFlags, in nsIVariant aImageFormat, in T_WebCLSize aWidth, in T_WebCLSize aHeight, in T_WebCLSize aRowPitch)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLMemoryObject.html">IWebCLMemoryObject</a> <a class="el" href="interfaceIWebCLContext.html#ac0c6b072c1dce0a5cca93af78300a780">IWebCLContext::createImage2D</a> </td>
          <td>(</td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a>&#160;</td>
          <td class="paramname"><em>aFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in nsIVariant&#160;</td>
          <td class="paramname"><em>aImageFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aRowPitch</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a 2D image object. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aFlags</td><td>A bit-field that is used to specify allocation </td></tr>
    <tr><td class="paramname">aImageFormat</td><td>An object with "channelOrder" and "channelDataType" properties of integer type. (Also "image_channel_order" and "image_channel_data_type" are accepted but not recommended for use.) </td></tr>
    <tr><td class="paramname">aWidth</td><td>The width of the image in pixels. </td></tr>
    <tr><td class="paramname">aHeight</td><td>The height of the image in pixels. </td></tr>
    <tr><td class="paramname">aRowPitch</td><td>The scan-line pitch in bytes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>WebCLMemoryObject instance representing a 2D image. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateImage2D </dd>
<dd>
<a class="el" href="interfaceIWebCLContext.html#a9f69f3138b8f7683c7386cde61423b94" title="Get the list of image formats supported by an OpenCL implementation.">getSupportedImageFormats</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab73cd608b10f0f68ba0f3b60a6cffa3e"></a><!-- doxytag: member="IWebCLContext::createImage3D" ref="ab73cd608b10f0f68ba0f3b60a6cffa3e" args="(in T_WebCLMemFlags aFlags, in nsIVariant aImageFormat, in T_WebCLSize aWidth, in T_WebCLSize aHeight, in T_WebCLSize aDepth, in T_WebCLSize aRowPitch, in T_WebCLSize aSlicePitch)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLMemoryObject.html">IWebCLMemoryObject</a> <a class="el" href="interfaceIWebCLContext.html#ab73cd608b10f0f68ba0f3b60a6cffa3e">IWebCLContext::createImage3D</a> </td>
          <td>(</td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a>&#160;</td>
          <td class="paramname"><em>aFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in nsIVariant&#160;</td>
          <td class="paramname"><em>aImageFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aDepth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aRowPitch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#a6452826b06a0496650ef8df637272756">T_WebCLSize</a>&#160;</td>
          <td class="paramname"><em>aSlicePitch</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a 3D image object. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aFlags</td><td>A bit-field that is used to specify allocation </td></tr>
    <tr><td class="paramname">aImageFormat</td><td>An object with "channelOrder" and "channelDataType" properties of integer type. (Also "image_channel_order" and "image_channel_data_type" are accepted but not recommended for use.) </td></tr>
    <tr><td class="paramname">aWidth</td><td>The width of the image in pixels. </td></tr>
    <tr><td class="paramname">aHeight</td><td>The height of the image in pixels. </td></tr>
    <tr><td class="paramname">aDepth</td><td>The depth of the image in pixels. </td></tr>
    <tr><td class="paramname">aRowPitch</td><td>The scan-line pitch in bytes. </td></tr>
    <tr><td class="paramname">aSlicePitch</td><td>The size in bytes of each 2D slice in the 3D image. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>WebCLMemoryObject instance representing a 3D image. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateImage3D </dd>
<dd>
<a class="el" href="interfaceIWebCLContext.html#a9f69f3138b8f7683c7386cde61423b94" title="Get the list of image formats supported by an OpenCL implementation.">getSupportedImageFormats</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af4f9064245bf433c1ef106b44ad06978"></a><!-- doxytag: member="IWebCLContext::createProgramWithSource" ref="af4f9064245bf433c1ef106b44ad06978" args="(in string aSource)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLProgram.html">IWebCLProgram</a> <a class="el" href="interfaceIWebCLContext.html#af4f9064245bf433c1ef106b44ad06978">IWebCLContext::createProgramWithSource</a> </td>
          <td>(</td>
          <td class="paramtype">in string&#160;</td>
          <td class="paramname"><em>aSource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a program object for a context, and loads the source code specified by the text string aSource into the program object. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aSource</td><td>The program source code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A WebCLProgram instance. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateProgramWithSource </dd></dl>

</div>
</div>
<a class="anchor" id="abb239eb4af61af9c2974f79bf7f848ab"></a><!-- doxytag: member="IWebCLContext::createSampler" ref="abb239eb4af61af9c2974f79bf7f848ab" args="(in boolean aNormalizedCoords, in T_WebCLAddressingMode aAddressingMode, in T_WebCLFilterMode aFilterMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLSampler.html">IWebCLSampler</a> <a class="el" href="interfaceIWebCLContext.html#abb239eb4af61af9c2974f79bf7f848ab">IWebCLContext::createSampler</a> </td>
          <td>(</td>
          <td class="paramtype">in boolean&#160;</td>
          <td class="paramname"><em>aNormalizedCoords</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#aa9a1e259e5b0c134f036423fd389dc2b">T_WebCLAddressingMode</a>&#160;</td>
          <td class="paramname"><em>aAddressingMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#ab1cbd3d68ec437a83969b4af3f1a1f83">T_WebCLFilterMode</a>&#160;</td>
          <td class="paramname"><em>aFilterMode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a sampler object. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNormalizedCoords</td><td>Determines if the image coordinates specified are normalized (true) or not (false). </td></tr>
    <tr><td class="paramname">aAddressingMode</td><td>Specifies how out-of-range image coordinates are handled when reading from an image. </td></tr>
    <tr><td class="paramname">aFilterMode</td><td>Specifies the type of filter that must be applied when reading an image. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>WebCLMemoryObject instance representing a sampler. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateSampler </dd></dl>

</div>
</div>
<a class="anchor" id="a103375eaf93fee56d1fed5d913ead244"></a><!-- doxytag: member="IWebCLContext::createUserEvent" ref="a103375eaf93fee56d1fed5d913ead244" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceIWebCLEvent.html">IWebCLEvent</a> <a class="el" href="interfaceIWebCLContext.html#a103375eaf93fee56d1fed5d913ead244">IWebCLContext::createUserEvent</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a user event object. </p>
<p>User events allow applications to enqueue commands that wait on a user event to finish before the command is executed by the device. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A WebCLEvent instance. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clCreateUserEvent </dd></dl>

</div>
</div>
<a class="anchor" id="afba3b87c3b22d1d02b52d8bb85e38321"></a><!-- doxytag: member="IWebCLContext::getContextInfo" ref="afba3b87c3b22d1d02b52d8bb85e38321" args="(in long aName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nsIVariant <a class="el" href="interfaceIWebCLContext.html#afba3b87c3b22d1d02b52d8bb85e38321">IWebCLContext::getContextInfo</a> </td>
          <td>(</td>
          <td class="paramtype">in long&#160;</td>
          <td class="paramname"><em>aName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get context info. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aName</td><td>Name of the info parameter. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The resulting value. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clGetContextInfo </dd>
<dd>
WebCL_types </dd></dl>

</div>
</div>
<a class="anchor" id="a9f69f3138b8f7683c7386cde61423b94"></a><!-- doxytag: member="IWebCLContext::getSupportedImageFormats" ref="a9f69f3138b8f7683c7386cde61423b94" args="(in T_WebCLMemFlags aFlags, in T_WebCLMemObjectType aImageType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nsIVariant <a class="el" href="interfaceIWebCLContext.html#a9f69f3138b8f7683c7386cde61423b94">IWebCLContext::getSupportedImageFormats</a> </td>
          <td>(</td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#aec32aabf173b2b5d9e70a7b4ba0a037e">T_WebCLMemFlags</a>&#160;</td>
          <td class="paramname"><em>aFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in <a class="el" href="WebCL__types_8idl.html#ad1b673722e988d883d12ad7bac854c2b">T_WebCLMemObjectType</a>&#160;</td>
          <td class="paramname"><em>aImageType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the list of image formats supported by an OpenCL implementation. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aFlags</td><td>A bit-field that is used to specify allocation </td></tr>
    <tr><td class="paramname">aImageType</td><td>Describes the image type and must be either CL_MEM_OBJECT_IMAGE2D or CL_MEM_OBJECT_IMAGE3D. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A JSArray of image formats wrapped in an nsIVariant. Each image format item is an object with properties channelOrder and channelDataType. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>clGetSupportedImageFormats </dd></dl>

</div>
</div>
<a class="anchor" id="ad7fccb419d1d64e1f010ed17df6fd5da"></a><!-- doxytag: member="IWebCLContext::releaseCLResources" ref="ad7fccb419d1d64e1f010ed17df6fd5da" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="interfaceIWebCLContext.html#ad7fccb419d1d64e1f010ed17df6fd5da">IWebCLContext::releaseCLResources</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Immediately releases all OpenCL-related resources if any are allocated for this object. </p>
<p>The object should not be used anymore after calling this function. </p>

</div>
</div>
<hr/>The documentation for this interface was generated from the following file:<ul>
<li>public/<a class="el" href="IWebCLContext_8idl_source.html">IWebCLContext.idl</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 7 2012 12:59:51 for WebCL by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
